#ifndef AICHATDIALOG_H
#define AICHATDIALOG_H

#include <QDialog>
#include <QTextEdit>
#include <QLineEdit>
#include <QPushButton>
#include <QCoreApplication>
#include "deepseekapi.h"

class AIChatDialog : public QDialog
{
    Q_OBJECT

public:
    explicit AIChatDialog(QWidget *parent = nullptr);
    ~AIChatDialog();
    void setInitialPrompt(const QString &prompt);

private slots:
    void sendQuestion();
    void displayAnswer(const QString &answer);
    void displayError(const QString &errorMessage);
    void openApiKeysDialog();

private:
    QTextEdit *chatDisplay;
    QLineEdit *questionInput;
    QPushButton *sendButton;
    QPushButton *settingsButton;
    DeepSeekAPI *deepseekApi;
};

#endif // AICHATDIALOG_H